﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.RestaurantMenuNorm
{
    public class RestaurantMenuNormsPresenter : Presenter<IRestaurantMenuNormsView>
    {
        public RestaurantMenuNormsPresenter(IRestaurantMenuNormsView view)
            : base(view)
        {
        }

        public void DisplayPagedByBranch(int currentPage)
        {
            View.RestaurantMenuNorms = Model.GetRestaurantMenuNormsPageByBranch(currentPage);
        }

        public int GetTotalPageByBranch()
        {
            return Model.GetTotalPageFromRestaurantMenuNormByBranch();
        }

        //public void DisplayActiveByBranch()
        //{
        //    //View.RestaurantMenuNorms = Model.GetRestaurantMenuCategoriesActiveByBranch();
        //}
    }
}
